﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="edproduct.ascx.cs" Inherits="admin_edproduct" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Label ID="info" runat="server" Text=""></asp:Label>
<center>
<table width="100%">
    <tr>
        <td>Loại: </td>
        <td>
            <asp:DropDownList ID="cattype" runat="server" DataSourceID="SqlDataSource3" 
                DataTextField="description" DataValueField="id" AutoPostBack="True">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                ConnectionString="<%$ ConnectionStrings:canhbuomxanhconnectionstring %>" 
                SelectCommand="SELECT * FROM [Category]"></asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td>Loại sản phẩm: </td>
        <td>
            <asp:DropDownList ID="protype" runat="server" DataSourceID="SqlDataSource4" 
                DataTextField="description" DataValueField="id">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                ConnectionString="<%$ ConnectionStrings:canhbuomxanhconnectionstring %>" 
                SelectCommand="SELECT * FROM [ProductType] WHERE ([categoryId] = @categoryId)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="cattype" Name="categoryId" 
                        PropertyName="SelectedValue" Type="Int64" />
                </SelectParameters>
            </asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td>Logo: </td>
        <td>
            <asp:FileUpload ID="logo" runat="server" /></td>
    </tr>
    <tr>
        <td>Ảnh: </td>
        <td>
            <asp:FileUpload ID="img" runat="server" /></td>
    </tr>
    <tr>
        <td>Miêu tả: </td>
        <td>
            <asp:TextBox ID="des" runat="server" Height="115px" TextMode="MultiLine" 
                Width="370px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td colspan="2"><center>
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Trở về" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Button runat="server" ID="addbt" Text="Cập nhật" 
                onclick="addbt_Click"/></center></td>
    </tr>
</table>
</center>